| Einhugur Xml Plugin for Xojo |
|
AttributeIterator.Any Property
Returns true if there are any attributes.
Any as Boolean {Read}
Remarks
The Any property used to check if node has any attributes:
var f as FolderItem = FolderItem.ShowOpenFileDialog(".xml")
if f <> nil then
var doc as EinhugurXml.Document = new EinhugurXml.Document()
var result as EinhugurXml.ParseResult = doc.LoadFromFile(f)
if result.Success then
var tools as EinhugurXml.Node = doc.Child("Profile").Child("Tools").FirstChild
if tools.NodeAttributes.Any then
MessageBox("Node has at least one attribute")
end if
end if
end if
See Also
AttributeIterator Class